{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "02288e89",
   "metadata": {},
   "outputs": [],
   "source": [
    "#load the data\n",
    "import pandas as pd\n",
    "data = pd.read_csv('generated_data.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "b43de34f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'> (10, 2)\n"
     ]
    }
   ],
   "source": [
    "data.head()\n",
    "print(type(data),data.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "788a5a17",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0     1\n",
      "1     2\n",
      "2     3\n",
      "3     4\n",
      "4     5\n",
      "5     6\n",
      "6     7\n",
      "7     8\n",
      "8     9\n",
      "9    10\n",
      "Name: x, dtype: int64 0     7\n",
      "1     9\n",
      "2    11\n",
      "3    13\n",
      "4    15\n",
      "5    17\n",
      "6    19\n",
      "7    21\n",
      "8    23\n",
      "9    25\n",
      "Name: y, dtype: int64\n"
     ]
    }
   ],
   "source": [
    "#data赋值\n",
    "x = data.loc[:,'x']\n",
    "y = data.loc[:,'y']\n",
    "print(x,y)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "a466c429",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAlkAAAI/CAYAAABEVcwAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAdNUlEQVR4nO3df6zdd33f8dd7ttFugcl0GIZN0rAK3ZWhEk9WRIc2USh1miFwp/1I1KFsRUo3lQ0m5BW30to/K92WbhqoKIUMqqHQrhgXrSmXiCExpJbi4ICThluyj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ILACAAUQWAMAA/xczj1s621p9RwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 720x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#visualize the data 使数据可视化\n",
    "from matplotlib import pyplot as plt\n",
    "plt.figure(figsize = (10, 10))\n",
    "plt.scatter(x,y)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "e1fe9d3d",
   "metadata": {},
   "outputs": [],
   "source": [
    "#set up a linear regression model建立线性回归模型\n",
    "from sklearn.linear_model import LinearRegression\n",
    "lr_model = LinearRegression()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "2fca0ecb",
   "metadata": {},
   "outputs": [],
   "source": [
    "#将数据由一维转为二维  我不知道为什么要转，明明传进来的是一个二维数组啊\n",
    "import numpy as np\n",
    "x = np.array(x)\n",
    "x = x.reshape(-1, 1)\n",
    "y = np.array(y)\n",
    "y = y.reshape(-1, 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "ccb35430",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'numpy.ndarray'> (10, 1)\n"
     ]
    }
   ],
   "source": [
    "print(type(x), x.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "8a02e124",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "LinearRegression()"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "lr_model.fit(x, y)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "7c1c3b03",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[ 7.]\n",
      " [ 9.]\n",
      " [11.]\n",
      " [13.]\n",
      " [15.]\n",
      " [17.]\n",
      " [19.]\n",
      " [21.]\n",
      " [23.]\n",
      " [25.]]\n"
     ]
    }
   ],
   "source": [
    "y_predict = lr_model.predict(x)\n",
    "print(y_predict)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "bfcc9fee",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[12.]]\n"
     ]
    }
   ],
   "source": [
    "y_3 = lr_model.predict([[3.5]])\n",
    "print(y_3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "264abc25",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[ 7]\n",
      " [ 9]\n",
      " [11]\n",
      " [13]\n",
      " [15]\n",
      " [17]\n",
      " [19]\n",
      " [21]\n",
      " [23]\n",
      " [25]]\n"
     ]
    }
   ],
   "source": [
    "print(y)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "da4ee658",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[2.]] [5.]\n"
     ]
    }
   ],
   "source": [
    "# 打印ab\n",
    "a = lr_model.coef_\n",
    "b = lr_model.intercept_\n",
    "print(a, b)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "344d9761",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.4909471108677122e-29 1.0\n"
     ]
    }
   ],
   "source": [
    "from sklearn.metrics import mean_squared_error,r2_score\n",
    "MSE= mean_squared_error(y, y_predict)\n",
    "R2 = r2_score(y, y_predict)\n",
    "print(MSE,R2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "543b8972",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAD4CAYAAADiry33AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGx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iMU9CLiMS4/w883vXxx9FcTQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure()\n",
    "plt.plot(y,y_predict)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "fedd94a3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAD4CAYAAADiry33AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAWb0lEQVR4nO3df2zc9X3H8eerxkhXimZaDI1NaFiFrNGxJpUVrctasXbUIWKQoqpLVFXRWintVKQibVbjVeqq/QOd107TqIrSEcEmBG1V46IRahBUYkz9gRMHnCx4BJQJn7PEbeVC1ZNI0vf+8NfZxXzPPt+d7+zPvR7S6b7fz/fzuXvfN9+8cvnc9+6riMDMzNL1tlYXYGZmq8tBb2aWOAe9mVniHPRmZolz0JuZJe6SVheQ58orr4xNmza1ugwzs3Xj0KFDP4+I7rxtazLoN23axPj4eKvLMDNbNyT9T6VtnroxM0ucg97MLHEOejOzxDnozcwS56A3M0vcskEvaaOkH0k6LumYpC9m7V+VVJR0JLvtqDB+u6QpSSck7Wv0CzAzW+9GJ4psu+cZrtv3ONvueYbRiWJDH7+a0yvPAX8VEYclXQ4ckvRUtu0fI+IfKg2U1AF8E7gZmAael/RYRPxXvYWbmaVgdKLI0MgkpbPnASjOlRgamQRg55behjzHsu/oI+JURBzOlt8AjgPVPvtW4EREvBoRbwKPALfXWqyZWWqGx6YuhPyC0tnzDI9NNew5VjRHL2kTsAX4adZ0p6QXJR2QdEXOkF7gtbL1aSr8IyFpr6RxSeOzs7MrKcvMb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BURr1c7LKdtVfdppTrX4jGaU2tTjtOkg575P8DDEXF68YaIeD0ifp0tHwQ6JV3Z7AIzpyVtAMjuz+T0mQY2lq1fA8w0oba3kLQHuBX4VGSTiItFxEx2fwZ4lPn/fjZNRJyOiPMR8Vvg2xWef03sU0mXAHcA36nUp9n7U1In84H0UESMZM1r7jitUOeaPEbzam3WcZp60Fd8lyTp3dm8KJK2Mr8vftHE2so9BuzJlvcAP8jp8zxwvaTrsv+p7MrGNZWk7cCXgNsi4jcV+lwm6fKFZeY/HDua13e1LARS5uMVnn9N7FPgT4GXImI6b2Oz92f29+J+4HhEfKNs05o6TivVuRaP0SVqbc5x2oxPnFtxA97OfHD/Tlnb54HPZ8t3AseY/wT7J8AfNamuh5n/L9pZ5v+l/izwLuBp4OXs/p1Z3x7gYNnYHcx/Wv8K8OUW1XqC+fnCI9ntvsW1Mn92wAvZ7dhq11qhzn8DJoEXs78UG1q9T/PqzNofWDguy/q2cn/+MfNTAy+W/TnvWGvH6RJ1rsVjtFKtTTlO/RMIZmaJS33qxsys7TnozcwS56A3M0ucg97MLHEOejOzxDnozcwS56A3M0vc/wGQwlEh7z/JFQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.scatter(y,y_predict)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7998df5c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
